package com.bw.zh.view

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.bw.zg2.base.BaseActivity
import com.bw.zg2.base.BaseViewBindingActivity
import com.bw.zh.R
import com.bw.zh.databinding.ActivityHomeBinding

class HomeActivity : BaseViewBindingActivity<ActivityHomeBinding>(R.layout.activity_home) {
    override fun initData() {
    }

    override fun initView(savedInstanceState: Bundle?) {
        dataBinding.tvMore1.setOnClickListener {
            val intent = Intent(this@HomeActivity, GoodsDetailActivity::class.java)
            intent.putExtra("title","好物商品")
            startActivity(intent)
        }
        dataBinding.tvMore2.setOnClickListener {
            val intent = Intent(this@HomeActivity, GoodsActivity::class.java)
            intent.putExtra("title","购车")
            startActivity(intent)
        }
    }

}